package com.hhh.controller;

import com.hhh.entity.Restaurant;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class RestaurantController {

    @GetMapping("/restaurants")
    public List<Restaurant> getRestaurants() {
        return List.of(
                new Restaurant("惊喜餐厅", "市中心", "特色美食"),
                new Restaurant("美味餐厅", "东城区", "海鲜"),
                new Restaurant("经典餐厅", "西城区", "传统菜肴")
        );
    }
}